package com.achievement.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.achievement.entity.Subject;
@Repository
public interface SubjectRepository extends PagingAndSortingRepository<Subject, Long>, JpaSpecificationExecutor<Subject> {
	@Query(value="from Subject s where s.num=?1")
	public Subject findByNum(String num);
}
